package com.fire.market.mapper;

import com.fire.market.entity.ItemDo;

import java.util.List;

public interface ItemDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ItemDo record);

    int insertSelective(ItemDo record);

    ItemDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ItemDo record);

    int updateByPrimaryKey(ItemDo record);

    List<ItemDo> selectAll();

    void increaseSalesByItemId(Integer itemId, Integer amount);

    void decreaseSalesByItemId(Integer itemId, Integer amount);
}